﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Teachers:Person
    {
        private string title;
        private int wageno;

        public string Title
        {
            get { return this.title; }
            set { this.title = value; }
        }
        public int Wageno
        {
            get { return this.wageno; }
            set { this.wageno = value; }
        }
        public Teachers( int id, string name, char sex, string cardId, int tel)
            : base(id, name, sex, cardId, tel)
        {

        }
        public void PriantMsg()
        {
            Console.WriteLine("老师姓名：{0},老师编号：{1}，性别:{2}，身份证号：{3}，电话号码:{4}，职称:{5}，工资号:{6}",
                 Id, Name, Sex, CardId, Tel, Title, Wageno);
        }
    }
}
